<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  <title>老侯代读</title>
  <meta name="description" content="" />
  <meta name="keywords" content="" />
  <link rel="stylesheet" href="/css/style.css">
  <script src="/js/jquery.min.js"></script>
  <script type="text/javascript">
    $(function () {
      var colour=['red','oring','yellow','green','blue','deepblue','purple'];
      $('#pushlog .column').each(function (i) {
        $('.column').eq(i).addClass(colour[i]);
      });
    });
  </script>
</head>
<body>

<div class="container">
  <div class="customer-head huiz">
    <div class="">
      <div class="photo">
        @if($memberInfo->FilePath1!='')
          <img src="{{$memberInfo->FilePath1}}" alt="">
          @else
          <img src="/images/photo.png" alt="">
          @endif

        <span class="tag">合伙人</span>
      </div>
      <p class="huiz-name">{{$memberInfo->YourName}}</p>
    </div>
    <ul class="huiz-info clearfix">
      <li>
        <a href="/partner/commission.html">
        <p class="huiz-info-tit">佣金</p>
          @if($entMemberDRP->IsRebate==0)
            <p class="huiz-info-txt">{{$entMemberDRP->SalesMoney}}</p>
            @else
            <p class="huiz-info-txt">{{$entMemberDRP->MemBalances}}</p>
            @endif

        </a>
      </li>
    </ul>
  </div>
  <div class="main">
    <a href="/partner/bookfriend.html" class="one-link"><span class="link-tit"><img class="link-icon" src="/images/myf-icon.png" alt="">我的书友</span><img class="to-right" src="/images/to-right.png" alt=""></a>
    <div class="form-next-step" style="margin: 2rem 0;">
      <a href="/qrcode.html" class="mbtn mbtn-sure">邀请好友一起加入老侯代读，赚取奖励 <img class="click" src="/images/click.png" alt=""></a>
    </div>
    <div class="panel">
      <p class="panel-title">
        最新数据
      </p>
      <div class="panel-con">
        <div class="data-info">
          <p class="data-title">
            最近一周推广情况
          </p>
          <ul id="pushlog" class="data-table clearfix">
            @foreach($entPushMoneyLog as $key=>$value)
              <li data-i="{{$value}}" >
                <div class="data-item">
                  <span class="data-numb">{{$value}}</span>
                  <span class="column"></span>
                  <span class="column-name"> <?php $time=explode('-',$key);echo $time[1].'-'.$time[2];?></span>
                </div>
              </li>
            @endforeach
          </ul>
        </div>
      </div>
    </div>


  </div>

</div>
<script>
  $(function(){
    var coluArr = [];
    $('#pushlog li').each(function (i) {
      coluArr[i]=$(this).attr('data-i');
    });
    setH(coluArr, $(".column"));
  })
  function setH(arr, obj){
    for(var i = 0, len = arr.length; i < len; i++){
      obj.eq(i).css("height", arr[i] + "rem");
    }
  }
</script>
</body>
</html>